package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 
 * 
 * @author MR.XU
 * @email 260139486@qq.com
 * @date 2021-01-18 15:59:47
 */
@Data
@TableName("sys_area")
@ApiModel(value = "area对象", description = "")
public class SysAreaEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	@ApiModelProperty(value = "",example = "1")
	private Integer id;
	/**
	 * 上级id
	 */
	@ApiModelProperty(value = "上级id")
	private Integer pid;
	/**
	 * 层级
	 */
	@ApiModelProperty(value = "层级")
	private Integer deep;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String name;

	@TableField(exist = false)
	@ApiModelProperty("子集")
	private List<SysAreaEntity> children;
}
